package com.zmj.entity;

import java.math.BigDecimal;

public class OrderDetail {

	private int did;
	private long oid;
	private int gid;
	private int number;
	private BigDecimal price;
	private String ddesc;
	
	//一条订单详情,对应的一个商品信息;
	private Goods goods;
	
	public Goods getGoods() {
		return goods;
	}

	public void setGe(Goods goods) {
		this.goods=goods;
	}

	public OrderDetail() {
	}
	
	public OrderDetail(long oid, int gid, int number, BigDecimal price, String desc) {
		this.oid = oid;
		this.gid = gid;
		this.number = number;
		this.price = price;
		this.ddesc = desc;
	}
	public int getDid() {
		return did;
	}
	public void setDid(int did) {
		this.did = did;
	}
	public long getOid() {
		return oid;
	}
	public void setOid(long oid) {
		this.oid = oid;
	}
	public int getGid() {
		return gid;
	}
	public void setGid(int gid) {
		this.gid = gid;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getDdesc() {
		return ddesc;
	}

	public void setDdesc(String ddesc) {
		this.ddesc = ddesc;
	}
	
}
